import { defineStore } from 'pinia'
import { insertOrder } from '@/api/order'
import { order } from '@/model/orderModel'

export default defineStore('order', () => {
  const addOrder = async (order: order[]) => {
    await insertOrder(order)
  }
  return { addOrder }
})
